<?php
/**
 * Created by PhpStorm.
 * User: cuibenyong
 * Date: 2019/9/14
 * Time: 10:26 AM
 */

namespace app\index\validate;


use think\Validate;

class SignUp extends Validate
{

    protected $rule = [
        'phone' => 'require|mobile',
        'code' => 'require',
        'password' => 'require|min:6|max:16|confirm',
    ];

    protected $message = [
        'phone.require' => '手机号码不能为空',
        'phone.mobile' => '手机号码非法',
        'password.require' => '请输入6-16位密码',
        'password.min' => '请输入6-16位密码',
        'password.max' => '请输入6-16位密码',
        'password.confirm' => '两次输入的密码不一致',
    ];
}